import os
import scripts.app_helper as app

CUSTOM_WIDGET_LIBS = []

DEPENDS_LIBS = CUSTOM_WIDGET_LIBS + []

ARGUMENTS['WITH_MVVM'] = 'true'
ARGUMENTS['MVVM_ROOT'] = '../awtk-mvvm'
if ARGUMENTS.get("LINUX_FB") == 'true':
  ARGUMENTS['MVVM_ROOT'] = '../../../awtk-mvvm-linux-fb'

APP_SRC = [
  os.path.join(os.getcwd(), 'src/common'),
  os.path.join(os.getcwd(), 'src/models'),
  os.path.join(os.getcwd(), 'src/view_models')
]

helper = app.Helper(ARGUMENTS)
helper.set_deps(DEPENDS_LIBS)
helper.add_cpppath(APP_SRC)

app.prepare_depends_libs(ARGUMENTS, helper, DEPENDS_LIBS)
helper.call(DefaultEnvironment)

SConscriptFiles = ['src/SConscript', 'tests/SConscript']
helper.SConscript(SConscriptFiles)
